Size

public interface Size

A pair of numbers that in general are used to define dimensions in the two-dimensional space.

Functions

Link copied to clipboard
public static Size empty()
Returns an empty Size with zero width and height.
Link copied to clipboard
public int height()
Returns the vertical dimension.
Link copied to clipboard
public boolean isEmpty()
Returns true if this size is empty.
Link copied to clipboard
public static Size of(int width, int height)
Returns the Size instance for the given width and height values.
Link copied to clipboard
public int width()
Returns the horizontal dimension.